package com.wanyang.service.impl;

import com.wanyang.dao.UserDao;
import com.wanyang.pojo.User;
import com.wanyang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhai on 16/4/17.
 */
@Service
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    @Autowired
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User login(String username, String password) {
        return userDao.login(username, password);
    }
}
